<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h1>插值表达</h1>
    <div>{{ msg }} </div>
    <div>{{ count }}</div>
    <h1>v-text</h1>
    <div v-text="msg"></div>
    <h1>v-model</h1>
    <input type="text" v-model="msg">
    <h1>v-html</h1>
    <div v-html="tmp"> </div>
    <h1>v-on</h1>
    <div v-on:click="clickHanlder">click me</div>
  </div>

  <script src="./js/dep.js"></script>
  <script src="./js/watcher.js"></script>
  <script src="./js/compiler.js"></script>
  <script src="./js/observable.js"></script>
  <script src="./js/vue.js"></script>
  <script>

    var vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello',
        count: 100,
        tmp: '<p>p标签</p>'
      },
      methods: {
        clickHanlder() {
          console.log('cliked')
        }
      }
    })
  </script>
</body>
</html>